<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>简易版本vue框架</title>
	</head>
	<body>
		<div class="app">
			<h2>{{msg}}</h2>
			<p v-text="title"></p>
			<input type="text" v-model="username" />
			<p>{{username}}</p>
		</div>

		<script src="./js/VueUtil.js"></script>
		<script>
			const vm = new Vue({
				el: '.app',
				data: {
					msg: 'hello vue',
					title: '自定义vue核心',
					username: 'jack',
				},
			})
		</script>

		<script type="module">
			// import { Vue } from './js/Vue.js'
			// import { Compiler } from './js/Compiler.js'
			// const vm = new Vue({
			// 	el: '.app',
			// 	data: {
			// 		msg: 'hello vue',
			// 		title: '自定义vue核心',
			// 		username: 'jack',
			// 	},
			// })

			// vm.msg = 'hello world'
		</script>
	</body>
</html>
